<?php

namespace Admin\Controller;
use Think\Controller;

//Controller父类：ThinkPHP/Library/Think/Controller.class.php

class ManagerController extends Controller{
    //用户登录
    function login(){
        //分配视图display();
       
        $this -> display();
    }

     //验证用户的登录信息
      function dologin(){

      	$username=$_POST['admin_user'];
      	$password=$_POST['admin_psd'];
        //验证用户是否合法
        if($username=='aa' && $password=='123456'){
              //合法
        	 $this->assign("info","1");

        	 //跳转用户信息页面
        	 $this -> display("manager");
        }else{

        	 $this->assign("info","0");
        	 $this -> display("login");
        }
        
    }


}

